@extends('layouts.app')

@section('content')
<div class="container">
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading">Records</div>

                <div class="panel-body">
                    <table class="table table-hover table-striped">
                      <thead>
                        <tr>
                          <th>ID</th>
                          <th>Status Code</th>
                          <th>Recorded At</th>
                        </tr>
                      </thead>
                      <tbody>
                        @foreach($records as $v)
                        <tr>
                          <td>#{{$v['id']}}</td>
                          <td>
                              <span class="label label-{{$v['status_code'] == 200?'success':'danger'}}">{{$v['status_code']}}</span>
                          </td>
                          <td>
                              {{$v['created_at']}}
                          </td>
                        </tr>
                        @endforeach
                      </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
